﻿<Activity mc:Ignorable="sap sap2010 sads" x:Class="WFExtended.Samples.Activities.TwitterRateLimitSample"
 xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities"
 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
 xmlns:mca="clr-namespace:Microsoft.CSharp.Activities;assembly=System.Activities"
 xmlns:p="http://schemas.microsoft.com/netfx/2009/xaml/servicemodel"
 xmlns:sads="http://schemas.microsoft.com/netfx/2010/xaml/activities/debugger"
 xmlns:sap="http://schemas.microsoft.com/netfx/2009/xaml/activities/presentation"
 xmlns:sap2010="http://schemas.microsoft.com/netfx/2010/xaml/activities/presentation"
 xmlns:scg="clr-namespace:System.Collections.Generic;assembly=mscorlib"
 xmlns:sco="clr-namespace:System.Collections.ObjectModel;assembly=mscorlib"
 xmlns:wfs="clr-namespace:WFExtended.Framework.ServiceModel;assembly=WFExtended"
 xmlns:wt="clr-namespace:WFExtended.Twitter;assembly=WFExtended.Twitter"
 xmlns:wta="clr-namespace:WFExtended.Twitter.Activities;assembly=WFExtended.Twitter"
 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  <x:Members>
    <x:Property Name="Tokens" Type="InArgument(wt:OAuthTokens)" />
  </x:Members>
  <sap2010:ExpressionActivityEditor.ExpressionActivityEditor>C#</sap2010:ExpressionActivityEditor.ExpressionActivityEditor>
  <sap2010:WorkflowViewState.IdRef>WFExtended.Samples.Activities.TwitterRateLimitSample_1</sap2010:WorkflowViewState.IdRef>
  <TextExpression.NamespacesForImplementation>
    <sco:Collection x:TypeArguments="x:String">
      <x:String>System</x:String>
      <x:String>System.Collections.Generic</x:String>
      <x:String>System.Data</x:String>
      <x:String>System.Linq</x:String>
      <x:String>System.Text</x:String>
      <x:String>WFExtended.Twitter</x:String>
    </sco:Collection>
  </TextExpression.NamespacesForImplementation>
  <TextExpression.ReferencesForImplementation>
    <sco:Collection x:TypeArguments="AssemblyReference">
      <AssemblyReference>System</AssemblyReference>
      <AssemblyReference>System.Activities</AssemblyReference>
      <AssemblyReference>System.Core</AssemblyReference>
      <AssemblyReference>System.Drawing</AssemblyReference>
      <AssemblyReference>System.Runtime.DurableInstancing</AssemblyReference>
      <AssemblyReference>System.Runtime.Serialization</AssemblyReference>
      <AssemblyReference>System.ServiceModel</AssemblyReference>
      <AssemblyReference>System.ServiceModel.Activities</AssemblyReference>
      <AssemblyReference>System.ServiceModel.Discovery</AssemblyReference>
      <AssemblyReference>System.Xaml</AssemblyReference>
      <AssemblyReference>System.Xml.Linq</AssemblyReference>
      <AssemblyReference>System.Data.DataSetExtensions</AssemblyReference>
      <AssemblyReference>Microsoft.CSharp</AssemblyReference>
      <AssemblyReference>System.Data</AssemblyReference>
      <AssemblyReference>System.Xml</AssemblyReference>
      <AssemblyReference>WFExtended.Twitter</AssemblyReference>
      <AssemblyReference>WFExtended</AssemblyReference>
      <AssemblyReference>mscorlib</AssemblyReference>
      <AssemblyReference>WFExtended.Samples</AssemblyReference>
    </sco:Collection>
  </TextExpression.ReferencesForImplementation>
  <wta:TwitterProxy RetryCount="{x:Null}" RetryDelay="{x:Null}" EnablePersistence="True" EnableRateLimitAutoRetry="True" sap2010:WorkflowViewState.IdRef="TwitterProxy_1" UseSsl="True">
    <wta:TwitterProxy.ApplicationAccessToken>
      <InArgument x:TypeArguments="x:String">
        <mca:CSharpValue x:TypeArguments="x:String">Tokens.ApplicationAccessToken</mca:CSharpValue>
      </InArgument>
    </wta:TwitterProxy.ApplicationAccessToken>
    <wta:TwitterProxy.ApplicationAccessTokenSecret>
      <InArgument x:TypeArguments="x:String">
        <mca:CSharpValue x:TypeArguments="x:String">Tokens.ApplicationAccessTokenSecret</mca:CSharpValue>
      </InArgument>
    </wta:TwitterProxy.ApplicationAccessTokenSecret>
    <wta:TwitterProxy.ConsumerKey>
      <InArgument x:TypeArguments="x:String">
        <mca:CSharpValue x:TypeArguments="x:String">Tokens.ConsumerKey</mca:CSharpValue>
      </InArgument>
    </wta:TwitterProxy.ConsumerKey>
    <wta:TwitterProxy.ConsumerSecret>
      <InArgument x:TypeArguments="x:String">
        <mca:CSharpValue x:TypeArguments="x:String">Tokens.ConsumerSecret</mca:CSharpValue>
      </InArgument>
    </wta:TwitterProxy.ConsumerSecret>
    <wta:TwitterProxy.EndPointBehaviors>
      <InArgument x:TypeArguments="scg:List(p:IEndpointBehavior)" />
    </wta:TwitterProxy.EndPointBehaviors>
    <wta:TwitterProxy.Headers>
      <InArgument x:TypeArguments="scg:List(p:AddressHeader)" />
    </wta:TwitterProxy.Headers>
    <wta:TwitterProxy.Proxy>
      <InArgument x:TypeArguments="wfs:WcfProxy(wt:ITwitterApi)" />
    </wta:TwitterProxy.Proxy>
    <wta:TwitterProxy.RateLimitAutoRetryDelay>
      <InArgument x:TypeArguments="x:TimeSpan">
        <mca:CSharpValue x:TypeArguments="x:TimeSpan">new TimeSpan(0, 0, 30)</mca:CSharpValue>
      </InArgument>
    </wta:TwitterProxy.RateLimitAutoRetryDelay>
    <ActivityAction x:TypeArguments="wfs:WcfProxy(wt:ITwitterApi)">
      <ActivityAction.Argument>
        <DelegateInArgument x:TypeArguments="wfs:WcfProxy(wt:ITwitterApi)" Name="twitterProxy" />
      </ActivityAction.Argument>
      <While sap2010:WorkflowViewState.IdRef="While_1" Condition="True">
        <Sequence sap2010:WorkflowViewState.IdRef="Sequence_1">
          <wta:GetPrivacy Result="{x:Null}" sap2010:WorkflowViewState.IdRef="GetPrivacy_1" OperationName="GetPrivacy">
            <wta:GetPrivacy.Parameters>
              <scg:Dictionary x:TypeArguments="x:String, InArgument" />
            </wta:GetPrivacy.Parameters>
            <wta:GetPrivacy.Proxy>
              <InArgument x:TypeArguments="wfs:AWcfProxy">
                <mca:CSharpValue x:TypeArguments="wfs:AWcfProxy">twitterProxy</mca:CSharpValue>
              </InArgument>
            </wta:GetPrivacy.Proxy>
          </wta:GetPrivacy>
          <WriteLine sap2010:WorkflowViewState.IdRef="WriteLine_1">
            <InArgument x:TypeArguments="x:String">
              <mca:CSharpValue x:TypeArguments="x:String">DateTime.Now.ToLongTimeString()</mca:CSharpValue>
            </InArgument>
          </WriteLine>
          <Delay sap2010:WorkflowViewState.IdRef="Delay_1">
            <InArgument x:TypeArguments="x:TimeSpan">
              <mca:CSharpValue x:TypeArguments="x:TimeSpan">new TimeSpan(0,0,5)</mca:CSharpValue>
            </InArgument>
          </Delay>
        </Sequence>
      </While>
    </ActivityAction>
    <sads:DebugSymbol.Symbol>d1ZFOlxQcm9qZWN0c1xXRkVcTWFpblxTb3VyY2VzXFdGRXh0ZW5kZWQuU2FtcGxlc1xBY3Rpdml0aWVzXFR3aXR0ZXJSYXRlTGltaXRTYW1wbGUueGFtbA81A3YWAgEBOAk4ZAIBGT0JPWoCARdCCUJZAgEVVQlVXwIBE0cJR1wCARFcB3MPAgECXQlyFAIBBFxCXEgCAQNeC2ccAgENaAtsFwIBCW0LcRMCAQVkEWRgAgEOag9qbAIBCm8Pb2ICAQY=</sads:DebugSymbol.Symbol>
  </wta:TwitterProxy>
  <sap2010:WorkflowViewState.ViewStateManager>
    <sap2010:ViewStateManager>
      <sap2010:ViewStateData Id="GetPrivacy_1" sap:VirtualizedContainerService.HintSize="211,72" />
      <sap2010:ViewStateData Id="WriteLine_1" sap:VirtualizedContainerService.HintSize="211,62" />
      <sap2010:ViewStateData Id="Delay_1" sap:VirtualizedContainerService.HintSize="211,22" />
      <sap2010:ViewStateData Id="Sequence_1" sap:VirtualizedContainerService.HintSize="233,360">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="While_1" sap:VirtualizedContainerService.HintSize="464,520" />
      <sap2010:ViewStateData Id="TwitterProxy_1" sap:VirtualizedContainerService.HintSize="494,644" />
      <sap2010:ViewStateData Id="WFExtended.Samples.Activities.TwitterRateLimitSample_1" sap:VirtualizedContainerService.HintSize="534,724" />
    </sap2010:ViewStateManager>
  </sap2010:WorkflowViewState.ViewStateManager>
</Activity>